/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dio.com.controller;

import dio.com.dao.conexao.AcessoCM;
import dio.com.dao.MetasDAO;
import dio.com.model.bean.Meta;
import java.sql.Connection;
import java.util.List;

/**
 *
 * @author Diogenes
 */
public class MetasController implements IMetasController {
    
    private MetasDAO metasDAO = new MetasDAO();
    
    @Override
    public void salvarMeta(Meta meta,Connection con) {
        metasDAO.inserirMetas(meta,con);
        
    }

    @Override
    public void editarMeta(Meta meta,Connection con) {
        metasDAO.editarMetas(meta,con);
    }

    @Override
    public List<Meta> carregarMetas(Meta meta) {
        return metasDAO.carregarMeta(meta);
    }

    @Override
    public boolean existeMeta(Meta meta, AcessoCM mysql) {
        return metasDAO.existeMetas(meta, mysql);
    }
    
}
